Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade drizzle-orm from 0.30.7 to 0.30.10 #87

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dennis-adrian
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade drizzle-orm from 0.30.7 to 0.30.10.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 21 versions ahead of your current version.

  • The recommended version was released 21 days ago, on 2024-05-01.

Release notes
Package name: drizzle-orm
  • 0.30.10 - 2024-05-01

    New Features

    🎉 .if() function added to all WHERE expressions

    Select all users after cursors if a cursor value was provided

    async function someFunction(categories: string[] = [], views = 0) {
      await db
        .select()
        .from(users)
        .where(
           and(
              gt(posts.views, views).if(views > 100),
              inArray(posts.category, categories).if(categories.length > 0),
           ),
        );
    }

    Bug Fixes

    • Fixed internal mappings for sessions .all, .values, .execute functions in AWS DataAPI
  • 0.30.10-9929654 - 2024-05-01
  • 0.30.9 - 2024-04-21
    • 🐛 Fixed migrator in AWS Data API
    • Added setWhere and targetWhere fields to .onConflictDoUpdate() config in SQLite instead of single where field
    • 🛠️ Added schema information to Drizzle instances via db._.fullSchema
  • 0.30.9-fc4ded5 - 2024-05-16
  • 0.30.9-f9be0ab - 2024-05-01
  • 0.30.9-d939ec2 - 2024-04-21
  • 0.30.9-b473fa9 - 2024-05-21
  • 0.30.9-a420907 - 2024-05-10
  • 0.30.9-88f271b - 2024-05-21
  • 0.30.9-8680b6d - 2024-04-26
  • 0.30.9-825932f - 2024-04-26
  • 0.30.9-68815d1 - 2024-04-29
  • 0.30.9-33a34e3 - 2024-05-21
  • 0.30.9-30dc2ee - 2024-04-30
  • 0.30.9-14c6fe3 - 2024-05-15
  • 0.30.9-0a473f4 - 2024-04-30
  • 0.30.8 - 2024-04-11
    • 🎉 Added custom schema support to enums in Postgres (fixes #669 via #2048):

    ⚠️ Only available in drizzle-orm for now, drizzle-kit support will arrive soon

    import { pgSchema } from 'drizzle-orm/pg-core';

    const mySchema = pgSchema('mySchema');
    const colors = mySchema.enum('colors', ['red', 'green', 'blue']);

    • 🎉 Changed D1 migrate() function to use batch API (#2137)
    • 🐛 Split where clause in Postgres .onConflictDoUpdate method into setWhere and targetWhere clauses, to support both where cases in on conflict ... clause (fixes #1628, #1302 via #2056)
    • 🐛 Fixed query generation for where clause in Postgres .onConflictDoNothing method, as it was placed in a wrong spot (fixes #1628 via #2056)
    • 🐛 Fixed multiple issues with AWS Data API driver (fixes #1931, #1932, #1934, #1936 via #2119)
    • 🐛 Fix inserting and updating array values in AWS Data API (fixes #1912 via #1911)

    Thanks @ hugo082 and @ livingforjesus!

  • 0.30.8-a1accd7 - 2024-04-16
  • 0.30.8-3d06cf2 - 2024-04-20
  • 0.30.8-1a48cee - 2024-04-10
  • 0.30.8-4428354 - 2024-04-16
  • 0.30.7 - 2024-04-03

    Bug fixes

    • Add mappings for @ vercel/postgres package
    • Fix interval mapping for neon drivers - #1542
from drizzle-orm GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Note: This is a default PR template raised by Snyk. Find out more about how you can customise Snyk PRs in our documentation.

Snyk has created this PR to upgrade drizzle-orm from 0.30.7 to 0.30.10.

See this package in npm:
drizzle-orm

See this project in Snyk:
https://app.snyk.io/org/dennis-adrian/project/f15ca6bc-e766-4ea2-b622-23a305b6d313?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

vercel bot commented May 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
glitter-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2024 6:15pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants